package mybatis.dao;

import mybatis.entity.Game;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

public interface GameDao {
    public void add(Game game);
    public void addGameFeature(@Param("fid") int featureId, @Param("gid") int gameId);
    public void addGameType(@Param("gid") int gameId, @Param("fid") int TypeId);
    public void addGameLanguage(@Param("gid") int gameId, @Param("lid") int LangueageId);
    public void addGameVoice(@Param("gid") int gameId, @Param("vid") int VoiceId);
    public void addSrcs(@Param("src") String src, @Param("gid") int gid);
    public List<Game> findByNew();
    public List<Game> findAll();
    public List<Game> findAllByTid(int tid);
    //	public List<Game> findByTid(@Param("tid")int tid,@Param("index")int index);
    public int findCount(int tid);
    public Game findByNumber(int number);
    public Game findByGid(int gameId);
    public HashMap<String, BigDecimal> findPrices(int gid);
    public void addGameAccessory(Game game);

    Game findWholeGameById(int id);
}
